package com.xxxy.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xxxy.converter.FacultyConverter;
import com.xxxy.converter.GenderConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author sjh
 * @date 2022/1/22 17:03
 */

@Data
@TableName("es_teacher")
public class Teacher implements Serializable {
    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "教师账号")
    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "账号")
    private String account;

    @JsonIgnore
    @ApiModelProperty(value = "密码", hidden = true)
    private String pwd;

    @ExcelProperty(value = "教师姓名")
    @ApiModelProperty(value = "教师姓名")
    private String name;

    @ExcelProperty(value = "性别", converter = GenderConverter.class)
    @ApiModelProperty(value = "老师性别")
    private Integer sex;


    @ExcelProperty(value = "学院", converter = FacultyConverter.class)
    @ApiModelProperty(value = "学院ID")
    private Integer facultyId;
}